<div class='fui-page fui-page-current member-log-page'>
    <div class='fui-content' >
		<div class="fui-tab fui-tab-success">
			<a ng-class="{'active':pagedata.params.status==0}" class="external" href="javascript:;" ng-click="pagedata.params.status=0;tool.get_list('jy_peimilk/merch.mybaodan/list/status=0',true)">待审核</a>
			<a ng-class="{'active':pagedata.params.status==1}" class="external" href="javascript:;" ng-click="pagedata.params.status=1;tool.get_list('jy_peimilk/merch.mybaodan/list/status=1',true)">审核通过</a>
			<a ng-class="{'active':pagedata.params.status==2}" class="external" href="javascript:;" ng-click="pagedata.params.status=2;tool.get_list('jy_peimilk/merch.mybaodan/list/status=2',true)">审核不通过</a>
		</div>
        <div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
            <i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
        </div>
		<div style="padding:0 0.5rem">
        <div class='fui-list-group' ng-repeat="item in pagedata.list">
			<a class="fui-list external" style="padding: 0.42rem 0.5rem">
                    <div class="fui-list-inner">
                        <div class="subtitle"> <span style="color:#999;font-size:0.65rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.60rem"></i> {{item.createtime}}</span></div>
                    </div>
                    <div class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">{{item.statustitle}}</div>
                    <div class="angle"></div>
            </a> 
			<a href="javascript:;" ng-repeat="g in item.goods" class="external">
							<div class="fui-list">
								<div class="fui-list-media" style="">
									<img class="" ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}">
								</div>
								<div class="fui-list-inner">
									<div class="text goodstitle towline">{{g.title}}</div>
									<div class="text" style="color:#f60;font-size:0.60rem">{{g.selespename || '无规格'}} x {{g.total || 1}} /{{g.unit ||'件'}}</div>
									<div ng-if="g.goodsnum>0" class="text"><i class="fui-tag fui-tag-red">含{{g.goodsnum}}个</i></div>
								</div>
								<div class="fui-list-angle" style="width:auto">
									<div>￥<span class="marketprice syscolorred">{{g.price}}</span></div>
								</div>
							</div>
			</a>
			<div class="fui-list-group-title lineblock">
                    <span class="status noremark">共 <span>{{item.goods.length}}</span> 个商品 实付: <span class="text-danger">￥{{item.price}}</span></span>
             </div>
			 <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark r-f">
					<div ng-show="item.status==0" class="btn btn-sm btn-default-o order-finish" href="javascript:;" ng-click="access_json('/merch.mybaodan/check/id='+item.id)">审核报单</div>
				</span>
            </div>
		</div>
		</div>
    </div>
</div>
<script>
scope.tool.get_list('jy_peimilk/merch.mybaodan/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_peimilk/merch.mybaodan/list/');
}
</script>